package com.liu.permission.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.liu.permission.entity.base.PermissionInfo;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author LiuChengLong
 * @since 2022-09-22
 */
public interface IPermissionInfoService extends IService<PermissionInfo> {

    /**
     * 检验权限代码是否存在
     * @param permissionCode 权限代码
     * @return true、false
     */
    Boolean checkPermissionCodeExistence(String permissionCode);

    /**
     * 新增权限
     * @param permissionInfo 权限信息
     * @return true、false
     */
    boolean save(PermissionInfo permissionInfo);

}
